/ BBS in a Box 10
/ BBS In A Box Volume X (AMUG) (January 1994).bin / Files / Prog / U-Z / VideoToolBox.cpt / VideoToolboxSources / MaximizeConsoleHeight.c ![]() | < prev | next > |
MacBinary | 1993-03-31 | 1.9 KB | [TEXT/KAHL] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
66% | dexvert | Compact Compressed (Unix) (archive/compact) | ext | Supported |
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, inited, Wed Mar 31 03:42:56 1993, modified Wed Mar 31 03:42:56 1993, creator Think C, type ASCII, 1188 bytes "MaximizeConsoleHeight.c" , at 0x524 428 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [KAHL] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 17 4d 61 78 69 6d 69 | 7a 65 43 6f 6e 73 6f 6c |..Maximi|zeConsol|
|00000010| 65 48 65 69 67 68 74 2e | 63 00 00 00 00 00 00 00 |eHeight.|c.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 04 a4 00 | 00 01 ac a7 df 0a 10 a7 |........|........|
|00000060| df 0a 10 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 98 59 00 00 |........|.....Y..|
|00000080| 2f 2a 0d 4d 61 78 69 6d | 69 7a 65 43 6f 6e 73 6f |/*.Maxim|izeConso|
|00000090| 6c 65 48 65 69 67 68 74 | 2e 63 0d 54 48 49 4e 4b |leHeight|.c.THINK|
|000000a0| 20 43 20 70 72 6f 76 69 | 64 65 73 20 61 20 62 75 | C provi|des a bu|
|000000b0| 69 6c 74 2d 69 6e 20 63 | 6f 6e 73 6f 6c 65 2e 20 |ilt-in c|onsole. |
|000000c0| 54 68 61 74 20 63 6f 6e | 73 6f 6c 65 20 69 73 20 |That con|sole is |
|000000d0| 6c 65 73 73 20 75 73 65 | 66 75 6c 20 74 68 61 6e |less use|ful than|
|000000e0| 20 69 74 20 6d 69 67 68 | 74 20 62 65 20 0d 62 65 | it migh|t be .be|
|000000f0| 63 61 75 73 65 20 69 74 | 20 6f 70 65 6e 73 20 74 |cause it| opens t|
|00000100| 6f 20 6f 6e 6c 79 20 61 | 20 73 6d 61 6c 6c 20 73 |o only a| small s|
|00000110| 69 7a 65 2c 20 70 72 65 | 73 75 6d 61 62 6c 79 20 |ize, pre|sumably |
|00000120| 64 65 73 69 67 6e 65 64 | 20 74 6f 20 66 69 74 20 |designed| to fit |
|00000130| 6f 6e 20 74 68 65 20 73 | 6d 61 6c 6c 65 73 74 20 |on the s|mallest |
|00000140| 0d 4d 61 63 20 73 63 72 | 65 65 6e 2e 20 54 68 69 |.Mac scr|een. Thi|
|00000150| 73 20 72 6f 75 74 69 6e | 65 20 6f 70 65 6e 73 20 |s routin|e opens |
|00000160| 74 68 65 20 63 6f 6e 73 | 6f 6c 65 20 74 6f 20 74 |the cons|ole to t|
|00000170| 68 65 20 66 75 6c 6c 20 | 68 65 69 67 68 74 20 6f |he full |height o|
|00000180| 66 20 79 6f 75 72 20 6d | 61 69 6e 20 73 63 72 65 |f your m|ain scre|
|00000190| 65 6e 2e 20 0d 43 61 6c | 6c 20 4d 61 78 69 6d 69 |en. .Cal|l Maximi|
|000001a0| 7a 65 43 6f 6e 73 6f 6c | 65 48 65 69 67 68 74 20 |zeConsol|eHeight |
|000001b0| 42 45 46 4f 52 45 20 6f | 70 65 6e 69 6e 67 20 74 |BEFORE o|pening t|
|000001c0| 68 65 20 63 6f 6e 73 6f | 6c 65 20 69 6e 20 54 48 |he conso|le in TH|
|000001d0| 49 4e 4b 20 43 2e 0d 0d | 54 6f 20 63 68 61 6e 67 |INK C...|To chang|
|000001e0| 65 20 74 68 65 20 57 49 | 44 54 48 20 6f 66 20 79 |e the WI|DTH of y|
|000001f0| 6f 75 72 20 54 48 49 4e | 4b 20 43 20 63 6f 6e 73 |our THIN|K C cons|
|00000200| 6f 6c 65 20 64 6f 20 74 | 68 69 73 3a 0d 23 69 6e |ole do t|his:.#in|
|00000210| 63 6c 75 64 65 20 3c 63 | 6f 6e 73 6f 6c 65 2e 68 |clude <c|onsole.h|
|00000220| 3e 0d 2e 2e 2e 0d 63 6f | 6e 73 6f 6c 65 5f 6f 70 |>.....co|nsole_op|
|00000230| 74 69 6f 6e 73 2e 6e 63 | 6f 6c 73 3d 31 30 30 3b |tions.nc|ols=100;|
|00000240| 0d 0d 48 49 53 54 4f 52 | 59 3a 0d 31 2f 39 32 09 |..HISTOR|Y:.1/92.|
|00000250| 64 67 70 20 77 72 6f 74 | 65 20 69 74 2e 0d 38 2f |dgp wrot|e it..8/|
|00000260| 32 37 2f 39 32 09 64 67 | 70 09 63 68 65 63 6b 20 |27/92.dg|p.check |
|00000270| 66 6f 72 20 38 2d 62 69 | 74 20 71 75 69 63 6b 64 |for 8-bi|t quickd|
|00000280| 72 61 77 20 62 65 66 6f | 72 65 20 75 73 69 6e 67 |raw befo|re using|
|00000290| 20 47 44 65 76 69 63 65 | 73 2e 0d 31 30 2f 31 30 | GDevice|s..10/10|
|000002a0| 2f 39 32 20 64 67 70 20 | 52 65 64 75 63 65 64 20 |/92 dgp |Reduced |
|000002b0| 6d 61 78 69 6d 75 6d 20 | 63 6f 6e 73 6f 6c 65 20 |maximum |console |
|000002c0| 68 65 69 67 68 74 20 62 | 79 20 6f 6e 65 20 70 69 |height b|y one pi|
|000002d0| 78 65 6c 2c 20 73 6f 20 | 61 73 20 6e 6f 74 20 74 |xel, so |as not t|
|000002e0| 6f 20 63 6c 69 70 20 0d | 09 09 09 64 69 73 70 6c |o clip .|...displ|
|000002f0| 61 79 65 64 20 74 65 78 | 74 2e 0d 32 2f 32 32 2f |ayed tex|t..2/22/|
|00000300| 39 33 09 64 67 70 20 72 | 65 70 6c 61 63 65 64 20 |93.dgp r|eplaced |
|00000310| 47 65 74 4d 42 61 72 48 | 65 69 67 68 74 28 29 20 |GetMBarH|eight() |
|00000320| 62 79 20 4d 42 61 72 48 | 65 69 67 68 74 2e 0d 2a |by MBarH|eight..*|
|00000330| 2f 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 56 69 64 |/..#incl|ude "Vid|
|00000340| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 22 0d 23 69 66 |eoToolbo|x.h".#if|
|00000350| 20 54 48 49 4e 4b 5f 43 | 0d 09 23 69 6e 63 6c 75 | THINK_C|..#inclu|
|00000360| 64 65 20 3c 4c 6f 4d 65 | 6d 2e 68 3e 09 2f 2f 20 |de <LoMe|m.h>.// |
|00000370| 4d 42 61 72 48 65 69 67 | 68 74 0d 09 23 69 6e 63 |MBarHeig|ht..#inc|
|00000380| 6c 75 64 65 20 3c 63 6f | 6e 73 6f 6c 65 2e 68 3e |lude <co|nsole.h>|
|00000390| 0d 23 65 6e 64 69 66 0d | 0d 76 6f 69 64 20 4d 61 |.#endif.|.void Ma|
|000003a0| 78 69 6d 69 7a 65 43 6f | 6e 73 6f 6c 65 48 65 69 |ximizeCo|nsoleHei|
|000003b0| 67 68 74 28 76 6f 69 64 | 29 0d 7b 0d 23 69 66 20 |ght(void|).{.#if |
|000003c0| 54 48 49 4e 4b 5f 43 0d | 09 69 6e 74 20 65 72 72 |THINK_C.|.int err|
|000003d0| 6f 72 3b 0d 09 6c 6f 6e | 67 20 76 3b 0d 09 0d 09 |or;..lon|g v;....|
|000003e0| 65 72 72 6f 72 3d 47 65 | 73 74 61 6c 74 28 67 65 |error=Ge|stalt(ge|
|000003f0| 73 74 61 6c 74 51 75 69 | 63 6b 64 72 61 77 56 65 |staltQui|ckdrawVe|
|00000400| 72 73 69 6f 6e 2c 26 76 | 29 3b 0d 09 69 66 28 21 |rsion,&v|);..if(!|
|00000410| 65 72 72 6f 72 20 26 26 | 20 76 3e 3d 67 65 73 74 |error &&| v>=gest|
|00000420| 61 6c 74 38 42 69 74 51 | 44 29 7b 0d 09 09 63 6f |alt8BitQ|D){...co|
|00000430| 6e 73 6f 6c 65 5f 6f 70 | 74 69 6f 6e 73 2e 74 6f |nsole_op|tions.to|
|00000440| 70 3d 4d 42 61 72 48 65 | 69 67 68 74 2b 31 39 3b |p=MBarHe|ight+19;|
|00000450| 0d 09 09 63 6f 6e 73 6f | 6c 65 5f 6f 70 74 69 6f |...conso|le_optio|
|00000460| 6e 73 2e 6c 65 66 74 3d | 31 3b 0d 09 09 63 6f 6e |ns.left=|1;...con|
|00000470| 73 6f 6c 65 5f 6f 70 74 | 69 6f 6e 73 2e 6e 72 6f |sole_opt|ions.nro|
|00000480| 77 73 3d 0d 09 09 09 28 | 2a 2a 28 2a 2a 4d 61 69 |ws=....(|**(**Mai|
|00000490| 6e 44 65 76 69 63 65 29 | 2e 67 64 50 4d 61 70 29 |nDevice)|.gdPMap)|
|000004a0| 2e 62 6f 75 6e 64 73 2e | 62 6f 74 74 6f 6d 2d 34 |.bounds.|bottom-4|
|000004b0| 2d 63 6f 6e 73 6f 6c 65 | 5f 6f 70 74 69 6f 6e 73 |-console|_options|
|000004c0| 2e 74 6f 70 3b 0d 09 09 | 63 6f 6e 73 6f 6c 65 5f |.top;...|console_|
|000004d0| 6f 70 74 69 6f 6e 73 2e | 6e 72 6f 77 73 2f 3d 63 |options.|nrows/=c|
|000004e0| 6f 6e 73 6f 6c 65 5f 6f | 70 74 69 6f 6e 73 2e 74 |onsole_o|ptions.t|
|000004f0| 78 53 69 7a 65 2a 34 2f | 33 2d 31 3b 20 2f 2a 20 |xSize*4/|3-1; /* |
|00000500| 65 73 74 69 6d 61 74 65 | 20 6c 69 6e 65 20 73 70 |estimate| line sp|
|00000510| 61 63 69 6e 67 20 2a 2f | 0d 09 7d 0d 23 65 6e 64 |acing */|..}.#end|
|00000520| 69 66 0d 7d 00 00 00 00 | 00 00 00 00 00 00 00 00 |if.}....|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000590| 0d 09 73 2d 3e 63 6f 6d | 6d 61 6e 64 73 5b 33 5d |..s->com|mands[3]|
|000005a0| 2e 70 61 72 61 6d 31 3d | 30 3b 0d 09 73 2d 3e 63 |.param1=|0;..s->c|
|000005b0| 17 4d 61 78 69 6d 69 7a | 65 43 6f 6e 73 6f 6c 65 |.Maximiz|eConsole|
|000005c0| 48 65 69 67 68 74 2e 63 | 02 00 00 00 54 45 58 54 |Height.c|....TEXT|
|000005d0| 00 00 54 45 58 54 4b 41 | 48 4c 00 00 00 00 00 00 |..TEXTKA|HL......|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 a7 e5 d5 c0 00 00 | 00 00 00 00 01 ac 61 72 |........|......ar|
|00000600| 65 57 61 76 65 54 61 62 | 6c 65 2c 70 75 72 72 29 |eWaveTab|le,purr)|
|00000610| 3b 09 2f 2f 20 61 70 70 | 65 6e 64 20 73 71 75 61 |;.// app|end squa|
|00000620| 72 65 57 61 76 65 54 61 | 62 6c 65 0d 09 44 69 73 |reWaveTa|ble..Dis|
|00000630| 70 6f 73 65 48 61 6e 64 | 6c 65 28 28 48 61 6e 64 |poseHand|le((Hand|
|00000640| 6c 65 29 73 71 75 61 72 | 65 57 61 76 65 54 61 62 |le)squar|eWaveTab|
|00000650| 6c 65 29 3b 0d 09 0d 09 | 61 62 6f 72 74 53 6e 64 |le);....|abortSnd|
|00000660| 3d 70 75 72 72 3b 0d 09 | 69 66 28 48 61 6e 64 54 |=purr;..|if(HandT|
|00000670| 6f 48 61 6e 64 28 26 61 | 62 6f 72 74 53 6e 64 29 |oHand(&a|bortSnd)|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 6e 73 6f |...H..Mo|naco.nso|
|00000690| 6c 65 2e 20 54 68 61 74 | 20 63 6f 6e 73 6f 6c 65 |le. That| console|
|000006a0| 20 69 73 20 6c 65 00 06 | 00 04 00 29 00 07 01 6a | is le..|...)...j|
|000006b0| 01 3e 00 29 00 07 01 6a | 01 3e a7 de d1 d0 00 00 |.>.)...j|.>......|
|000006c0| 01 7c 00 00 01 7c 00 00 | 00 00 01 00 00 00 00 1e |.|...|..|........|
|000006d0| 00 29 00 07 01 6a 01 3e | 00 29 00 07 01 6a 01 3e |.)...j.>|.)...j.>|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 0e |.....n..|.n...>..|
|00000700| 96 d4 0b 06 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |........|.>..MPSR|
|00000710| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 03 f0 ff ff 00 00 00 4c | 00 10 97 84 00 00 00 00 |.......L|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+